<?php
class ControllerModuleEmbed extends Controller {
	protected function index($setting) {
		$this->data['html'] = html_entity_decode($setting['html']);
		
		$this->data['align'] = $setting['align'];

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/embed.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/embed.tpl';
		} else {
			$this->template = 'default/template/module/embed.tpl';
		}

		$this->render();
	}
}
?>